package com.we.wecc.aw.db.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AwardInvestExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public AwardInvestExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNull() {
            addCriterion("userId is null");
            return (Criteria) this;
        }

        public Criteria andUserIdIsNotNull() {
            addCriterion("userId is not null");
            return (Criteria) this;
        }

        public Criteria andUserIdEqualTo(Long value) {
            addCriterion("userId =", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotEqualTo(Long value) {
            addCriterion("userId <>", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThan(Long value) {
            addCriterion("userId >", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdGreaterThanOrEqualTo(Long value) {
            addCriterion("userId >=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThan(Long value) {
            addCriterion("userId <", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdLessThanOrEqualTo(Long value) {
            addCriterion("userId <=", value, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdIn(List<Long> values) {
            addCriterion("userId in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotIn(List<Long> values) {
            addCriterion("userId not in", values, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdBetween(Long value1, Long value2) {
            addCriterion("userId between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andUserIdNotBetween(Long value1, Long value2) {
            addCriterion("userId not between", value1, value2, "userId");
            return (Criteria) this;
        }

        public Criteria andAwardIdIsNull() {
            addCriterion("awardId is null");
            return (Criteria) this;
        }

        public Criteria andAwardIdIsNotNull() {
            addCriterion("awardId is not null");
            return (Criteria) this;
        }

        public Criteria andAwardIdEqualTo(Integer value) {
            addCriterion("awardId =", value, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdNotEqualTo(Integer value) {
            addCriterion("awardId <>", value, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdGreaterThan(Integer value) {
            addCriterion("awardId >", value, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("awardId >=", value, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdLessThan(Integer value) {
            addCriterion("awardId <", value, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdLessThanOrEqualTo(Integer value) {
            addCriterion("awardId <=", value, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdIn(List<Integer> values) {
            addCriterion("awardId in", values, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdNotIn(List<Integer> values) {
            addCriterion("awardId not in", values, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdBetween(Integer value1, Integer value2) {
            addCriterion("awardId between", value1, value2, "awardId");
            return (Criteria) this;
        }

        public Criteria andAwardIdNotBetween(Integer value1, Integer value2) {
            addCriterion("awardId not between", value1, value2, "awardId");
            return (Criteria) this;
        }

        public Criteria andEndTimesIsNull() {
            addCriterion("endTimes is null");
            return (Criteria) this;
        }

        public Criteria andEndTimesIsNotNull() {
            addCriterion("endTimes is not null");
            return (Criteria) this;
        }

        public Criteria andEndTimesEqualTo(Integer value) {
            addCriterion("endTimes =", value, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesNotEqualTo(Integer value) {
            addCriterion("endTimes <>", value, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesGreaterThan(Integer value) {
            addCriterion("endTimes >", value, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("endTimes >=", value, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesLessThan(Integer value) {
            addCriterion("endTimes <", value, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesLessThanOrEqualTo(Integer value) {
            addCriterion("endTimes <=", value, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesIn(List<Integer> values) {
            addCriterion("endTimes in", values, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesNotIn(List<Integer> values) {
            addCriterion("endTimes not in", values, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesBetween(Integer value1, Integer value2) {
            addCriterion("endTimes between", value1, value2, "endTimes");
            return (Criteria) this;
        }

        public Criteria andEndTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("endTimes not between", value1, value2, "endTimes");
            return (Criteria) this;
        }

        public Criteria andAmountIsNull() {
            addCriterion("amount is null");
            return (Criteria) this;
        }

        public Criteria andAmountIsNotNull() {
            addCriterion("amount is not null");
            return (Criteria) this;
        }

        public Criteria andAmountEqualTo(Integer value) {
            addCriterion("amount =", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotEqualTo(Integer value) {
            addCriterion("amount <>", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThan(Integer value) {
            addCriterion("amount >", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountGreaterThanOrEqualTo(Integer value) {
            addCriterion("amount >=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThan(Integer value) {
            addCriterion("amount <", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountLessThanOrEqualTo(Integer value) {
            addCriterion("amount <=", value, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountIn(List<Integer> values) {
            addCriterion("amount in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotIn(List<Integer> values) {
            addCriterion("amount not in", values, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountBetween(Integer value1, Integer value2) {
            addCriterion("amount between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andAmountNotBetween(Integer value1, Integer value2) {
            addCriterion("amount not between", value1, value2, "amount");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesIsNull() {
            addCriterion("invitedTimes is null");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesIsNotNull() {
            addCriterion("invitedTimes is not null");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesEqualTo(Integer value) {
            addCriterion("invitedTimes =", value, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesNotEqualTo(Integer value) {
            addCriterion("invitedTimes <>", value, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesGreaterThan(Integer value) {
            addCriterion("invitedTimes >", value, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("invitedTimes >=", value, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesLessThan(Integer value) {
            addCriterion("invitedTimes <", value, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesLessThanOrEqualTo(Integer value) {
            addCriterion("invitedTimes <=", value, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesIn(List<Integer> values) {
            addCriterion("invitedTimes in", values, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesNotIn(List<Integer> values) {
            addCriterion("invitedTimes not in", values, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesBetween(Integer value1, Integer value2) {
            addCriterion("invitedTimes between", value1, value2, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andInvitedTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("invitedTimes not between", value1, value2, "invitedTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesIsNull() {
            addCriterion("assistanceTimes is null");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesIsNotNull() {
            addCriterion("assistanceTimes is not null");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesEqualTo(Integer value) {
            addCriterion("assistanceTimes =", value, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesNotEqualTo(Integer value) {
            addCriterion("assistanceTimes <>", value, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesGreaterThan(Integer value) {
            addCriterion("assistanceTimes >", value, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesGreaterThanOrEqualTo(Integer value) {
            addCriterion("assistanceTimes >=", value, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesLessThan(Integer value) {
            addCriterion("assistanceTimes <", value, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesLessThanOrEqualTo(Integer value) {
            addCriterion("assistanceTimes <=", value, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesIn(List<Integer> values) {
            addCriterion("assistanceTimes in", values, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesNotIn(List<Integer> values) {
            addCriterion("assistanceTimes not in", values, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesBetween(Integer value1, Integer value2) {
            addCriterion("assistanceTimes between", value1, value2, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andAssistanceTimesNotBetween(Integer value1, Integer value2) {
            addCriterion("assistanceTimes not between", value1, value2, "assistanceTimes");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("createTime is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("createTime is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("createTime =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("createTime <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("createTime >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("createTime >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("createTime <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("createTime <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("createTime in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("createTime not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("createTime between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("createTime not between", value1, value2, "createTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}